/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include "MBT_Engine.h"


Inline S_物体* f_从骨头取末端骨节(S_物体* 骨头) {
	return ((S_物体*)骨头->m_UserData);
}
Inline S_物体* f_从骨头取前端骨节(S_物体* 骨头) {
	return ((S_物体*)骨头->m_父物体->m_UserData);
}



void f_NODE_BE_从骨骼更新骨节(S_物体* 骨架, S_物体** 骨干, S_物体** 骨节);
void f_NODE_BE_从骨节构建骨骼(S_物体* 骨架, S_物体** 骨干, S_物体** 骨节);

void f_NDE_解算IK(S_物体* 根骨骼);

int32 f_NE_get着色器节点树ID(void* tree);



